# coding:utf-8

def is_isbn(keyword):
    isbn = False
    if len(keyword) == 13 and keyword.isdigit():
        isbn = True

    if '-' in keyword:
        shot_key = keyword.replace('-', '')
        if len(shot_key) == 10 and shot_key.isdigit():
            isbn = True

    return isbn